package com.tsingteng.cosfun.ui.costar;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;

import com.tsingteng.cosfun.R;
import com.tsingteng.cosfun.base.BaseFragment;

/**
 * 描述: 合演 fragment
 * 创建人: 肖利
 *时间: 2018/7/30
 * qq: (872179966)
 */

public class CostarFragment extends BaseFragment {

    @Override
    public Animation onCreateAnimation(int transit, boolean enter, int nextAnim) {
        if (enter) {
            return AnimationUtils.loadAnimation(getActivity(),R.anim.activity_down);
        }else {
            return AnimationUtils.loadAnimation(getActivity(),R.anim.activity_up);
        }
    }

    @Override
    protected void initView() {
        getActivity().startActivity(new Intent(getContext(),CostarActivity.class));
    }

    @Override
    protected void getBundle(Bundle bundle) {

    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_costar;
    }
}
